class Example{

    /*
    byte byteValue() 
    short shortValue() 
    int intValue() 
    long longValue() 
    float floatValue() 
    double doubleValue()
    */
    static void main(String[] args){
        // 装箱，拆箱
        Integer x = 5, y = 10, z = 0;
        // the value of 5,10 and 0 are boxed into Integer types
        // The values of x and y are unboxed and the addition is performed
        z = x + y;
        println(z);

        println("x.doubleValue():" + x.doubleValue());
        println("x.byteValue():" + x.byteValue());
        println("x.floatValue():" + x.floatValue());
        println("x.shortValue():" + x.shortValue());
        println("x.longValue():" + x.longValue());
        println("x.intValue():" + x.intValue());

        println("x.compareTo(5):"+x.compareTo(5));
        println("x.compareTo(3):"+x.compareTo(3));
        println("x.compareTo(8):"+x.compareTo(8));
    }
}